<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:e="http://jboss.com/products/seam/excel"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:s="http://jboss.com/products/seam/taglib">
	
	<c:if test="#{rendered}">
		<e:column>
			<f:facet name="header">
				<e:cell value="#{label}"/>
			</f:facet>
			
			<c:choose>
				<c:when test="#{type == 'Date'}">
					<e:cell value="#{value}" forceType="date">
					</e:cell>
				</c:when>
				
				<c:when test="#{type == 'Time'}">
					<e:cell value="#{value}" forceType="date">
					</e:cell>
				</c:when>
				
				<c:when test="#{type == 'Timestamp'}">
					<e:cell value="#{value}" forceType="date">
					</e:cell>
				</c:when>
				
				<c:when test="#{type == 'Boolean'}">
					<e:cell value="#{value}" forceType="bool">
					</e:cell>
				</c:when>
				
				<c:when test="#{type == 'Integer'}">
					<e:cell value="#{value}" forceType="number"/>
				</c:when>
				
				<c:when test="#{type == 'Decimal'}">
					<e:cell value="#{value}" forceType="number"/>
				</c:when>
				
				<c:when test="#{type == 'Currency'}">
					<e:cell value="#{value}" forceType="number">
					</e:cell>
				</c:when>
				
				<c:when test="#{type == 'Percent'}">
					<e:cell value="#{value}" forceType="number">
					</e:cell>
				</c:when>
				
				<c:when test="#{type == 'Link'}">
					<e:cell value="#{value}" forceType="text"/>
				</c:when>
				
				<c:when test="#{type == 'Image'}">
					<e:cell value="#{value}" forceType="general"/>
				</c:when>
				
				<c:when test="#{type == 'Enum'}">
					<e:cell value="#{value}" forceType="text">
					</e:cell>
				</c:when>
				
				<c:when test="#{type == 'TextArea'}">
					<e:cell value="#{value}" forceType="text"/>
				</c:when>
				
				<c:otherwise>
					<e:cell value="#{value}" forceType="text"/>
				</c:otherwise>
			</c:choose>
			
		</e:column>
	</c:if>
</ui:composition>